package com.fzb.forum4j.dao.impl;

import org.springframework.stereotype.Repository;

import com.fzb.forum4j.dao.api.IAdminDao;
import com.fzb.forum4j.po.Admin;
@Repository
public class AdminDaoImpl extends HibBaseImpl<Admin> implements IAdminDao {

	@Override
	public Admin login(Admin t) {
		return (Admin)getSession().createQuery("from Admin u where u.userName=:userName and u.password=:password").setProperties(t).uniqueResult();
	}
 
 

}
 